// 用户信息存储到本地缓存
export const saveUserInfo = (token, name) => {
  localStorage.setItem("token", token);
  localStorage.setItem("name", name);
};
// 是否有登录状态
export const isLogin = () => !!localStorage.getItem("token");
// 移除登录信息
export const removeLogin = () => {
  localStorage.removeItem("token");
  localStorage.removeItem("name");
};
// 获取token
export const getToken = () => {
  return localStorage.getItem("token");
};
